# coding=utf-8
import threading
import requests
import urllib

import time
import datetime
import random

from bs4 import BeautifulSoup

url = 'http://php20.cn'


headers = {
    "User-Agent": "Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/58.0.3029.110 Safari/537.36"
}


# html=urllib.urlopen(url)
res = requests.get(url=url,headers=headers)

soup = BeautifulSoup(res.text , 'html.parser')

pic_list = soup.select('body h3 .b-oa-title')

for item in pic_list:

    #    url_list = img_url['src']
    print(item.txt)

       

print("开始运行")
# print(pic_list)
      
